package ScarvangerHuntEngine;

import Engine.Coordinate;
import Engine.Mission;
import Engine.Properties;
import Engine.Quest;

public class SHMission extends Mission {
	private String image;
	public String getImage() {
		return image;
	}
	private Coordinate coordinate;
	public Coordinate getCoordinate() {
		return coordinate;
	}

	public SHMission(int id, String description, String image, Coordinate coordinate) {
		super(id, description);
		this.image = image;
		this.coordinate = coordinate;
	}

	@Override
	public boolean testSuccess(Properties p) {
		SHProperties p2 = (SHProperties)p;
		if(p2.get_latLong().Equals(this.coordinate))
			return true;
		else 
			return false;
	}

	@Override
	public boolean Success(Quest q) {
		Mission current = q.GetRandomMission(); 
		current.setPreviousMission(this);
		q.setLastMission(current);
		
		return false;
	}

}
